import logging
import pytest
import yagmail
def send_mail(file):
    youjian=yagmail.SMTP(user="166213731@qq.com",password="jsjqzhaulsgpcbaf",host="smtp.qq.com",encoding="utf-8")
    youjian.send(to="166213731@qq.com",subject="测试报告已发送，请签收",contents="你好，白文强",attachments=file)




